package model.agent.mapper;


import model.agent.entity.Agent;
import org.junit.Test;
import org.junit.runner.RunWith;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.boot.test.context.SpringBootTest;
import org.springframework.data.domain.Sort;
import org.springframework.test.context.junit4.SpringRunner;

import java.util.List;


/**
 * Created by Administrator on 2019/6/23.
 */
@RunWith(SpringRunner.class)
@SpringBootTest
public class teatagent {
    @Autowired
    private AgentMapper agentMapper;
    @Test
    public void test(){
    Agent a=agentMapper.getById("1");
        System.out.println(a);
    }
    @Test
    public void test2(){
        List<Agent> agentList=agentMapper.findall();
        System.out.println(agentList);
    }

}
